package com.zrs.gmall.order.client.impl;

import com.zrs.gmall.common.result.Result;
import com.zrs.gmall.order.client.OrderFeignClient;
import com.zrs.gmall.order.model.OrderInfo;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @author: zrs
 * @create: 2023-03-10
 */
@Component
public class OrderDegradeFeignClient implements OrderFeignClient {
    @Override
    public Result<Map> tradeDatas() {
        return null;
    }

    @Override
    public OrderInfo getOrderInfo(Long orderId) {
        System.out.println("getOrderInfo服务降级~~~");
        return null;
    }

    @Override
    public OrderInfo getOrderInfoByOutradeNo(String outTradeNo) {
        System.out.println("getOrderInfoByOutradeNo服务降级~~~");
        return null;
    }

    @Override
    public Long submitSeckillOrder(OrderInfo orderInfo) {
        System.out.println("submitSeckillOrder 服务降级~~~");
        return null;
    }
}